import { MAIN_HOST } from '@/config.js'

export default function(data) {
  return window.parent.postMessage(data, MAIN_HOST)
}